package bilibili.static_;

public class Demo {
    public static void main(String[] args) {
        double sum = MyTools.calsum(1, 2);
        System.out.println("sum=" + sum);
    }
}

// 将方法定义成类方法，方便调用
class MyTools {
    public static double calsum(double x, double y) {
        return x + y;
    }
}